package com.cneiu.ppms.common;

import java.util.List;

import com.cneiu.ppms.web.base.BaseController;
import com.cneiu.ppms.web.model.PublicCodeModel;
import com.cneiu.ppms.web.service.PublicCodeService;

/**
 * 基础服务Controller 公共编码控制器
 * 
 * @author jiangli
 * @date 2013-04-15
 */
public class CommonController extends BaseController{

	public void chooseType(){
		List<PublicCodeModel> list = PublicCodeService.getTypeList(this.getParams());
		if (null != list){
			renderGrid(list.size(), list);
		}else{
			renderAjax(false, PublicCodeService.getError());
		}
	}
}
